import Vue from 'vue';
import sharePop from "components/sharePop"
Vue.component('footer-nav', {
  template: `<div>
  <div class="ft-nav">
      <ul>
        <li @click="toBuy()"><span>继续购买</span></li>
        <li @click="showSharePop()"><span>邀请好友</span></li>
      </ul>
    </div>
    <share-pop :show.sync = "showPop"></share-pop></div>`,
  data() {
    return {
      showPop: false
    }
  },
  components: {
    "share-pop": sharePop,
  },
  methods: {
    showSharePop: function() {
      this.showPop = true;
    },
    toBuy:function(){
      this.$router.push({path:'/orderPre'});
    }
  }
})
